import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store'
import deviceMixin from './mixins/device';//页面断点函数
import scrollTopMixin from './mixins/scrollTopMixin';//页面回滚顶部组件
import NavBar from './components/nav/navBar.vue';
import FooterBar from './components/footer/footerBar.vue';


import VueAwesomeSwiper from 'vue-awesome-swiper' //swiper 轮播 插件
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)
// 全局方法挂载


// 全局组件挂载
Vue.use(ElementUI);
Vue.mixin(deviceMixin);
Vue.mixin(scrollTopMixin);

Vue.component('NavBar',NavBar)
Vue.component('FooterBar',FooterBar)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
